package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.management.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 16778
 * @date 2025/10/15 20:39
 * @description
 */
@Slf4j
@RestController
@RequestMapping("/logs")
public class LogController {

    @Autowired
    private LogService logService;

    @GetMapping
    public Result getLogs(String operateUserName,Integer page,Integer pageSize){
        return Result.success(logService.pages(operateUserName,page,pageSize));
    }
}
